import {axios} from './request.js';


//查询公司列表获取公司id
export const getcompany =({data})=>{
	return axios({
		url:'/prod-api/api/job/company/list',
		data
	})
	
}

//获取公司详情
export const getcompanydate =({id,data})=>{
	return axios({
		url:'/prod-api/api/job/company/'+id,
		data
	})
	
}

//查询职位列表
export const getprofession=({header,data})=>{
	return axios({
		url:'/prod-api/api/job/profession/list',
		header,
		data
	})
}


//查询招聘列表
export const getpost =({header,data})=>{
	return axios({
		url:'/prod-api/api/job/post/list',
		header,
		data
	})
}

//查询招聘信息详情
export const getjobpost=({id,data})=>{
	return axios({
		url:'/prod-api/api/job/post/'+id,
		data
	})
}

//投递简历
export const  godeliver=({header,data})=>{
	return axios({
		url:'/prod-api/api/job/deliver',
		method:'post',
		header,
		data
	})
}

//查询投递历史列表
export const  getdeliverlist=({header,data})=>{
	return axios({
		url:'/prod-api/api/job/deliver/list',
		header,
		data
	})
}

//查询用户简历详情
export const  getoffer=({userId,header,data})=>{
	return axios({
		url:'/prod-api/api/job/resume/queryResumeByUserId/'+userId,
		header,
		data
	})
}

//新增当前用户简历
export const  getresume=({userId,header,data})=>{
	return axios({
		url:'/prod-api/api/job/resume',
		method:'post',
		header,
		data
	})
}

//修改当前用户简历
export const flexresume=({header,data})=>{
	return axios({
		url:'/prod-api/api/job/resume',
		method:'put',
		header,
		data
	})
}